package com.aoyy.model;

import java.util.Date;
import java.util.Set;

import com.aoyy.util.order.Payment;
import com.aoyy.util.order.State;
import java.io.Serializable;
/**======================================
 * <code>Order</code> model class
 * @author Administrator
 * @date 2017-07-11
 * ====================================== */
public class Order implements Serializable{
  private static final long serialVersionUID = 4241598916387525895L;
  private Integer orderId;
  private String orderNo;
  private String realName;
  private String tel;
  private String address;
  private Payment payment;
  private State state;
  private Date createdTime;
  private Float totalPrice;
  private User user;	
  private Set<OrderItem> orderItems;
  
  public void setOrderId(Integer orderId) {
	this.orderId = orderId;  
  }
  public Integer getOrderId() {
	return orderId;  
  }
  
  public void setOrderNo(String orderNo) {
	this.orderNo = orderNo;  
  }
  public String getOrderNo() {
	return orderNo;  
  }
  
  public void setRealName(String realName) {
	this.realName = realName;  
  }
  public String getRealName() {
	return realName;  
  }
  
  public void setTel(String tel) {
	this.tel = tel;
  }
  public String getTel() {
	return tel;  
  }
  
  public void setAddress(String address) {
	this.address = address;  
  }
  public String getAddress() {
	return address;  
  }
  
  public void setPayment(Payment payment) {
	this.payment = payment;  
  }
  public Payment getPayment() {
	return payment;  
  }
  
  public void setState(State state) {
	this.state = state;  
  }
  public State getState() {
	return state;  
  }
  
  public void setCreatedTime(Date createdTime) {
	this.createdTime = createdTime;  
  }
  public Date getCreatedTime() {
	return createdTime;  
  }
  
  public void setTotalPrice(Float totalPrice) {
	this.totalPrice = totalPrice;  
  }
  public Float getTotalPrice() {
	return totalPrice;  
  }
  
  public void setUser(User user) {
	this.user = user;  
  }
  public User getUser() {
	return user; 
  }
  
  public void setOrderItems(Set<OrderItem> orderItems) {
	this.orderItems = orderItems;  
  }
  public Set<OrderItem> getOrderItems() {
	return orderItems;  
  }
  
}
